<?php
/**
 *缺货商品模型
 *@author shipanpan
 */
class Cron_Model_Backup_Stockout extends Model_Base {

	public function __construct() {
		$this->db = $this->db();
	}
	/**
	 * 获取缺货商品总数
	 * @return [type] [description]
	 */
	public function getAllAmount() {
		return $this->db->fetchOne("select count(*) as number from b_product_stockout");
	}
}